package first.group.ssh.packet.reader;

import java.nio.ByteBuffer;
import java.util.Arrays;
import java.util.List;

public class NameListReader {
    public static List<String> readNameList(ByteBuffer buffer) {
        var str = StringReader.readString(buffer);
        if (str == null) {
            return null;
        }
        return Arrays.asList(str.split(","));
    }
}
